package cn.wx.sentine;

import cn.wx.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class SentineBlock {

       public  static  User degradationMethod(@PathVariable Long id, BlockException e){
        e.printStackTrace();
        return new User(-1L,"熔断了","不要再来了，求求了");
    }


}
